package com.ruoyi.project.system.video.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 视屏增删改查对象 sys_video
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
public class Video extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 视频名称 */
    @Excel(name = "视频名称")
    private String name;

    /** 视频类型 */
    @Excel(name = "视频类型")
    private String type;

    /** 总时长 */
    @Excel(name = "总时长")
    private Long totime;

    /** 上传 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadtime;

    /** 点赞 */
    @Excel(name = "点赞")
    private Long praise;

    /** 视频评论 */
    @Excel(name = "视频评论")
    private Long commentId;

    /** 观看次数 */
    @Excel(name = "观看次数")
    private Long count;

    /** 视频地址 */
    @Excel(name = "视频地址")
    private String url;

    /** 评论管理信息 */
    private List<Comment> commentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setTotime(Long totime) 
    {
        this.totime = totime;
    }

    public Long getTotime() 
    {
        return totime;
    }

    public void setUploadtime(Date uploadtime) 
    {
        this.uploadtime = uploadtime;
    }

    public Date getUploadtime() 
    {
        return uploadtime;
    }

    public void setPraise(Long praise) 
    {
        this.praise = praise;
    }

    public Long getPraise() 
    {
        return praise;
    }

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }

    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public List<Comment> getCommentList()
    {
        return commentList;
    }

    public void setCommentList(List<Comment> commentList)
    {
        this.commentList = commentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("totime", getTotime())
            .append("uploadtime", getUploadtime())
            .append("praise", getPraise())
            .append("commentId", getCommentId())
            .append("count", getCount())
            .append("url", getUrl())
            .append("commentList", getCommentList())
            .toString();
    }
}
